package com.github.base.service;

import com.github.base.domain.UserRole;
import com.github.base.vo.user.UserRoleVO;

import java.util.List;

public interface UserRoleService {
    /**
     * 批量添加用户角色
     * @param list
     * @return
     */
    boolean saveAllBatch(List<UserRole> list);

    List<UserRole> getByUserId(Long userId);

    void delete(Long userId);

    List<UserRoleVO> getUserRoleVoByUserId(Long userId);
}
